﻿package com.gengine.resource
{
    import com.gengine.resource.info.*;
    import com.gengine.resource.loader.*;

    public class FileType extends Object
    {
        private static var _classRef:Object = {.XML:XMLLoader, .JPG:ImageLoader, .PNG:ImageLoader, .GIF:ImageLoader, .DATA:DataLoader, .SWF:SWFLoader, .MPT:MapDataLoader, .ABC:ABCLoader, .JTA:JTALoader};
        private static var _classInfoRef:Object = {.XML:XMLInfo, .JPG:ImageInfo, .PNG:ImageInfo, .GIF:ImageInfo, .DATA:DataInfo, .SWF:SWFInfo, .MPT:MapDataInfo, .ABC:ImageInfo, .JTA:JTAInfo};

        public function FileType()
        {
            return;
        }// end function

        public static function addClassRef(param1:String, param2:Class, param3:Class) : void
        {
            _classRef[param1] = param2;
            _classInfoRef[param1] = param3;
            return;
        }// end function

        public static function getLoaderByType(param1:String) : Class
        {
            return _classRef[param1.toUpperCase()];
        }// end function

        public static function getLoaderInfoByType(param1:String) : Class
        {
            return _classInfoRef[param1.toUpperCase()];
        }// end function

    }
}
